Noemax FastInfoset.NET
ReadContentAsBase64(Byte[],Int32,Int32) Method
See Also  Send Feedback
Noemax.FastInfoset Namespace > XmlFastInfosetReader Class > ReadContentAsBase64 Method : ReadContentAsBase64(Byte[],Int32,Int32) Method






buffer

The buffer into which to copy the resulting bytes. This value cannot be a null reference (Nothing in Visual Basic).

index
The offset into the buffer where to start copying the result.
count
The maximum number of bytes to copy into the buffer. The actual number of bytes copied is returned by this method.
Reads the binary or Base64 encoded content at the current position and returns the decoded binary bytes.

Syntax

Visual Basic (Declaration) 
Public Overloads Overrides NotOverridable Function ReadContentAsBase64( _
   ByVal buffer() As Byte, _
   ByVal index As Integer, _
   ByVal count As Integer _
) As Integer
Visual Basic (Usage)Copy Code
Dim instance As XmlFastInfosetReader
Dim buffer() As Byte
Dim index As Integer
Dim count As Integer
Dim value As Integer
 
value = instance.ReadContentAsBase64(buffer, index, count)
C# 
public override int ReadContentAsBase64( 
   byte[] buffer,
   int index,
   int count
)
Delphi 
public function ReadContentAsBase64( 
    buffer: Bytearray of;
    index: Integer;
    count: Integer
): Integer; override; 
JScript 
public override function ReadContentAsBase64( 
   buffer : byte[],
   index : int,
   count : int
) : int;
Managed Extensions for C++ 
public: int ReadContentAsBase64( 
   byte[]* buffer,
   int index,
   int count
) override 
C++/CLI 
public:
int ReadContentAsBase64( 
   array<byte>^ buffer,
   int index,
   int count
) override 

Parameters

buffer

The buffer into which to copy the resulting bytes. This value cannot be a null reference (Nothing in Visual Basic).

index
The offset into the buffer where to start copying the result.
count
The maximum number of bytes to copy into the buffer. The actual number of bytes copied is returned by this method.

Return Value

The number of bytes written to the buffer.

Remarks

If the content is binary encoded Base64 bytes, the reader returns the bytes read. If the content is text, the reader performs Base64 decoding and returns the decoded bytes.

See Also